﻿<Page x:Class="Resn.WhuPub.WPFClientUI.AdminBusinessPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Style="{StaticResource PageStyle}" Loaded="Page_Loaded">
        <Grid x:Name="LayoutRoot">
                <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition />
                </Grid.RowDefinitions>
                <Grid Grid.Row="1" Margin="12">
                        <Border Grid.Column="0" Style="{StaticResource BorderStyle}">
                                <Grid Margin="6">
                                        <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition />
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition />
                                                <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>

                                        <TextBlock Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="0" Style="{DynamicResource BigTextBlockStyle}"
                                           HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                           Text="用户管理" />

                                        <TextBlock Grid.Column="0" Grid.Row="2" 
                                           HorizontalAlignment="Right"
                                           Text="管理员" />
                                        <TextBlock Grid.Column="1" Grid.Row="2" 
                                           HorizontalAlignment="Left" 
                                           Text="{Binding AdministratorsCount}" />


                                        <TextBlock Grid.Column="0" Grid.Row="3" 
                                           HorizontalAlignment="Right"
                                           Text="用户" />
                                        <TextBlock Grid.Column="1" Grid.Row="3" 
                                           HorizontalAlignment="Left" 
                                           Text="{Binding UsersCount}" />
                                        <Button Grid.Column="2" Grid.Row="3" Style="{DynamicResource ButtonStyle}"
                                           Content="进入" Click="ManageEmployeesButton_Click" />
                                </Grid>
                        </Border>
                </Grid>

                <Grid Grid.Row="2" Margin="12">
                        <Grid.ColumnDefinitions>
                                <ColumnDefinition />
                                <ColumnDefinition />
                                <ColumnDefinition />
                                <ColumnDefinition />
                        </Grid.ColumnDefinitions>
                        <Border Grid.Column="0" Style="{StaticResource BorderStyle}">
                                <Grid Margin="6">
                                        <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition />
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition />
                                                <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>

                                        <TextBlock Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="0" Style="{DynamicResource BigTextBlockStyle}"
                                           Text="学校" />
                                        <Button Grid.Column="2" Grid.Row="0" Style="{DynamicResource ButtonStyle}"
                                           Content="导入" Click="ImportCorporatesButton_Click" />

                                        <TextBlock Grid.Column="0" Grid.Row="2" 
                                           HorizontalAlignment="Right"
                                           Text="学校" />
                                        <TextBlock Grid.Column="1" Grid.Row="2" 
                                           HorizontalAlignment="Left" 
                                           Text="{Binding CorporateEntityManager.Entitys.Count}" />
                                        <Button Content="进入" Style="{DynamicResource ButtonStyle}" Grid.Column="2" Grid.Row="2" Click="ManageCorporatesButton_OnClick" />

                                        <TextBlock Grid.Column="0" Grid.Row="3" 
                                           HorizontalAlignment="Right" 
                                           Text="校区" />
                                        <TextBlock Grid.Column="1" Grid.Row="3" 
                                           HorizontalAlignment="Left" 
                                           Text="{Binding BranchEntityManager.Entitys.Count}" />
                                        <Button Content="进入" Style="{DynamicResource ButtonStyle}" Grid.Row="3" Grid.Column="2" Click="ManageBranchsButton_OnClick" />
                                </Grid>
                        </Border>

                        <Border Grid.Column="1" Style="{StaticResource BorderStyle}">
                                <Grid Margin="6">
                                        <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition />
                                                <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition />
                                                <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>

                                        <TextBlock Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="0" Style="{DynamicResource BigTextBlockStyle}"
                                           HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                           Text="联系人" />
                                        <Button Grid.Column="2" Grid.Row="0" Style="{DynamicResource ButtonStyle}"
                                           Content="导入" Name="ImportContactsButton" Click="ImportContactsButton_Click" />

                                        <TextBlock Grid.Column="0" Grid.Row="2" 
                                           HorizontalAlignment="Right"
                                           Text="共计" />
                                        <TextBlock Grid.Column="1" Grid.Row="2" 
                                           HorizontalAlignment="Left" 
                                           Text="{Binding ContactEntityManager.Entitys.Count}" />
                                        <Button Grid.Column="2" Grid.Row="2" Style="{DynamicResource ButtonStyle}"
                                           Content="进入" Name="ManageContactsButton" Click="ManageContactsButton_Click" />
                                </Grid>
                        </Border>
                        
                        <Border Grid.Column="2" Style="{StaticResource BorderStyle}">
                                <Grid Margin="6">
                                        <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition />
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition />
                                                <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>

                                        <TextBlock Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="0" Style="{DynamicResource BigTextBlockStyle}"
                                           Text="专业" />
                                        <Button Grid.Column="2" Grid.Row="0" Style="{DynamicResource ButtonStyle}"
                                           Content="导入" Name="ImportCategorysButton" Click="ImportCategorysButton_Click" />
                                        
                                        <TextBlock Grid.Column="0" Grid.Row="2" 
                                           HorizontalAlignment="Right"
                                           Text="门类" />
                                        <TextBlock Grid.Column="1" Grid.Row="2" 
                                           HorizontalAlignment="Left" 
                                           Text="{Binding CategoryEntityManager.Entitys.Count}" />
                                        <Button Grid.Column="2" Grid.Row="2" Style="{DynamicResource ButtonStyle}"
                                           Content="进入" Click="ManageCategorysButton_OnClick" Name="ManageCategorysButton" />

                                        <TextBlock Grid.Column="0" Grid.Row="3" 
                                           HorizontalAlignment="Right" 
                                           Text="科目" />
                                        <TextBlock Grid.Column="1" Grid.Row="3" 
                                           HorizontalAlignment="Left" 
                                           Text="{Binding SubjectEntityManager.Entitys.Count}" />
                                        <Button Grid.Column="2" Grid.Row="3" Style="{DynamicResource ButtonStyle}"
                                           Content="进入" Name="ManageSubjectsButton" Click="ManageSubjectsButton_Click" />

                                        <TextBlock Grid.Column="0" Grid.Row="4" 
                                           HorizontalAlignment="Right"
                                           Text="专业" />
                                        <TextBlock Grid.Column="1" Grid.Row="4" 
                                           HorizontalAlignment="Left" 
                                           Text="{Binding MajorEntityManager.Entitys.Count}" />
                                        <Button Grid.Column="2" Grid.Row="4" Style="{DynamicResource ButtonStyle}"
                                           Content="进入" Name="ManageMajorsButton" Click="ManageMajorsButton_Click" />

                                        

                                </Grid>
                        </Border>

                        <Border Grid.Column="3" Style="{StaticResource BorderStyle}">
                                <Grid Margin="6">
                                        <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition />
                                                <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition />
                                                <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>

                                        <TextBlock Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="0" Style="{DynamicResource BigTextBlockStyle}"
                                           HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                           Text="书籍" />
                                        <Button Grid.Column="2" Grid.Row="0" Style="{DynamicResource ButtonStyle}"
                                           Content="导入" Name="ImportBooksButton" Click="ImportBooksButton_Click" />

                                        <TextBlock Grid.Column="0" Grid.Row="2" 
                                           HorizontalAlignment="Right"
                                           Text="共计" />
                                        <TextBlock Grid.Column="1" Grid.Row="2" 
                                           HorizontalAlignment="Left" 
                                           Text="{Binding BookEntityManager.Entitys.Count}" />
                                        <Button Grid.Column="2" Grid.Row="2" Style="{DynamicResource ButtonStyle}"
                                           Content="进入" Name="ManageBooksButton" Click="ManageBooksButton_Click" />
                                </Grid>
                        </Border>
                </Grid>
        </Grid>
</Page>